package Entity;
import FinalProject.PriceException;

public class Entity_Clothing extends Entity_Product {
    private String size;

    public Entity_Clothing(String id, String name, double price, String description, String size) throws PriceException {
        super(id, name, price, description);
        this.size = size;
    }

    @Override
    public void displayInfo() {
        System.out.println("【服装】");
        System.out.println("编号：" + getId() + "，名称：" + getName());
        System.out.println("价格：" + getPrice() + "元，尺码：" + size);
        System.out.println("描述：" + getDescription());
    }

    // 特有方法：洗涤说明
    public void showWashingGuide() {
        System.out.println("洗涤提示：" + getName() + "建议手洗，不可漂白");
    }

    public String getSize() { return size; }
}